< previous page page_603 next page >

Page 603
8694cbadb9b1ef7075903f6f95fc1db2.gif
Place the command buttons on all forms in the same position and order whenever possible.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Use color to highlight important information.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Don't clutter the forms with too much information.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Keep the data entry forms simple.
8694cbadb9b1ef7075903f6f95fc1db2.gif
2. No, the only objects that can be placed directly on the MDI parent form are the picture box, menus, and any custom control that supports the Align property, such as the Statusbar control.
8694cbadb9b1ef7075903f6f95fc1db2.gif
3. Although both interface styles use a single form as the main application form, the Explorer interface uses many different controls to create the unique display.
Exercise
To create this application, you need two forms in the new project, the MDI parent and one child form with its visible property set to False. The child form should contain only the following code:
Private Sub Form_Resize()
    txtInput.Height = ScaleHeight
    txtInput.Width = ScaleWidth
End Sub
The MDI parent form will contain a menu, toolbar, and a status bar and should have the code from Listing A.4 included.
LISTING A.4. CHAP7EXE.TXTTHE MDI PARENT CODE FOR THE FINAL EXERCISE.

8694cbadb9b1ef7075903f6f95fc1db2.gif
Dim intFormCtr As Integer
Private Sub Toolbar1_ButtonClick(ByVal Button As ComctlLib.Button)
    On Error Resume Next
    Select Case Button.Key
        Case New
            Call mnuFileNew_Click
    End Select
End Sub

Private Sub MDIForm_Load()
    intFormCtr = 1
    frmNote.Caption = NotePad Version  & intFormCtr
End Sub

Private Sub mnuFileNew_Click()
    Dim NewNote As New frmNote
    intFormCtr = intFormCtr + 1
    NewNote.Show
    NewNote.Caption = NotePad Version  & intFormCtr
End Sub

 
< previous page page_603 next page >

If you like this book, buy it!